import request from '@/utils/request'

//新增培训经历
export function save(data) {
  return request({
    url: '/rms/rmsTrain/save',
    method: 'post',
    data:data
  })
}
//删除培训经历
export function deleteTrain(id) {
  return request({
    url: '/rms/rmsTrain/delete/'+id,
    method: 'get',
  })
}
//查询培训经历
export function findById(id) {
  return request({
    url: '/rms/rmsTrain/findById/'+id,
    method: 'get',
  })
}
//修改培训经历
export function update(data) {
  return request({
    url: '/rms/rmsTrain/update',
    method: 'post',
    data:data
  })
}
//查询全部培训经历
export function findAllTrain() {
  return request({
    url: '/rms/rmsTrain/findAll',
    method: 'get',
  })
}


